<?php


namespace app\common\service;
use app\common\model\Business as BusinessModel;
use app\common\model\Members as MembersModel;
class Business extends Base
{
    public function becomeBusiness($member_id){
        $data = MembersModel::get($member_id);
        $data->is_business = 1;
        if ($data->save()){
            return true;
        }else{
            return false;
        }
    }
}